#include <iostream>
#include <functional>
#include <string>
#include <vector>

using namespace std;

void Print(const string& str , int num)
{
    cout << str << " " << num << endl;
}

int main()
{
    using Func = function<void()>;
    vector<Func> manage;
    manage.push_back(bind(Print , "hello" , 1));
    manage.push_back(bind(Print , "bye" , 2));
    for(auto& f : manage)
    {
        f();
    }
    return 0 ; 
}